
const hello = {
  state: { count: 0 },
  mutations: {
    increment (state) {
      state.count++
    }
  },
  getters: {
    doubleCount (state) {
      return state.count * 2
    }
  },
  actions:{
    helloIncrement ({ state, commit, rootState }) {
      alert(rootState.count);
      commit("increment")
    }
  }
}

export default hello
